package com.example.multilevelapprovalback.service.impl;


import com.example.multilevelapprovalback.mapper.RoleMapper;
import com.example.multilevelapprovalback.pojo.Role;
import com.example.multilevelapprovalback.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleMapper roleMapper;

    //查询所有角色
    @Override
    public List<Role> getAllRole() {
        List<Role> list = roleMapper.getAllRole();
        return list;
    }
}
